package com.say.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;

import com.say.bean.domain.Words;
import com.say.dao.WordsDao;
import com.say.framework.core.common.service.BaseServiceImpl;
import com.say.service.WordsService;


@Service("wordsService")
public class WordsServiceImpl extends BaseServiceImpl<Words, String> implements WordsService {

    @Autowired
    public WordsDao wordsDao;

    @Override
    public PagingAndSortingRepository<Words, String> getDao() {
        return wordsDao;
    }

	@Override
	public Words getRandomByWordsType(Integer type) {
		return wordsDao.getRandomByWordsType(type);
	}

   
	
}
